package com.sec.android.app.myfiles.module.facade;

import com.sec.android.app.myfiles.MyFilesTestRunner;
import com.sec.android.app.myfiles.facade.FacadeItem;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.puremvc.java.multicore.patterns.command.SimpleCommand;

@RunWith(MyFilesTestRunner.class)
public class testFacadeItem {
    String mName = "TestName";
    SimpleCommand mCommand = null;
    FacadeItem mItem;

    @Before
    public void setUp() throws Exception {
        mItem = FacadeItem.createFacadeItem(mName, mCommand);
    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testCreateItem() {
        Assert.assertNotNull(mItem);
    }

    @Test
    public void testGetName() {
        Assert.assertEquals(mName, mItem.getName());
    }

    @Test
    public void testGetCommand() {
        Assert.assertEquals(mCommand, mItem.getCommand());
    }
}
